package com.yxym.poly;

public class Poly01 {
    public static void main(String[] args) {
        Master master = new Master("tom");
        Dog dog = new Dog("大白");
        Bone bone = new Bone("排骨");
        Cat cat = new Cat("大猫");
        Fish fish = new Fish("小黄鱼");
        Pig pig = new Pig("小猪佩奇");
        Rice rice = new Rice("白米饭");
        master.feed(pig,rice);
        System.out.println("=========");
        master.feed(cat,fish);
        System.out.println("=========");
        master.feed(dog,bone);
    }
}
